package com.iedu.demo.lgq.service.impl;

import com.iedu.demo.lgq.entity.Appliance;
import com.iedu.demo.lgq.entity.City;
import com.iedu.demo.lgq.mapper.ToolsMapper;
import com.iedu.demo.lgq.service.ToolsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ToolsServiceImpl implements ToolsService {

    @Autowired
    private ToolsMapper toolsMapper;

    @Override
    public void setPicUrl(String fileName, int orderId) {
        toolsMapper.setPicUrl(fileName,orderId);
    }

    @Override
    public List<City> findByRegionPid(Integer pid) {
        return toolsMapper.selectRegionByPid(pid);
    }

//    @Override
//    public List<Appliance> findByBrandAid(Integer aid) {
//        return toolsMapper.selectBrandByAid(aid);
//    }

}
